package com.hugh.lagouservicecode.pojo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * @Author: Hugh
 * @Date: 2020/7/19
 */
@Table(name = "lagou_auth_code")
@Data
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LagouAuthCode {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    private String email;

    private String code;

    private LocalDateTime createtime;

    private LocalDateTime expiretime;
}
